package com.song.flowable.entity.process;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 流程分类
 * </p>
 *
 * @author song
 * @since 2025-01-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("process_category")
@ApiModel(value="ProcessCategory对象", description="流程分类")
public class ProcessCategory extends Model<ProcessCategory> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分类标识ID")
    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "分类标识")
    @TableField("TYPE")
    private String type;

    @ApiModelProperty(value = "分类名称")
    @TableField("NAME")
    private String name;

    @ApiModelProperty(value = "父节点")
    @TableField("PARENT_ID")
    private String parentId;

    @ApiModelProperty(value = "分类描述")
    @TableField("MS")
    private String ms;

    @ApiModelProperty(value = "分类排序")
    @TableField("PX")
    private Integer px;

    @ApiModelProperty(value = "流程模型ID")
    @TableField("MODEL_ID")
    private String modelId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "UPDATETIME", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatetime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
